<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<title>后台控制面板--首页</title>
<link rel="stylesheet" type="text/css" href="/style/style.css" />
<script type="text/javascript" src="/js/jquery/lib/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
<!--
$(document).ready(function(){
	//提示信息
	var msgInfo = '${msgInfo?default("")}';
	if(msgInfo != '' && msgInfo != null){

		alert(msgInfo);
	}
});
//-->
</script>
</head>
<body class="indexbody">
<div id="Content">
  <div style="width:100%; ">
  <div urlvalue="Oasp2803">
  <div id="Block">
          <div id="BlockHead">
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
              <tbody>
                <tr valign="center">
                  <td width="5"></td>
                  <td>公章和头文件管理</td> 
                  <td width="22"></td>
                </tr>
              </tbody>
            </table>
          </div>
<form action="officialDoc_goSeal.action" method="post" id="officialDoc_goSeal" name="officialDoc_goSeal">
          <div class="right_con">
                	<ul class="rig_nav">
                    	<li class="rig_nav_on"><a href="officialDoc_goSeal.action">公章</a></li>
                        <li><a href="officialDoc_goTemplate.action">头文件</a></li>
                    </ul>

        </div>
          <div id="BlockDetail">
          <table border="0" cellpadding="1" cellspacing="1" width="100%" bgcolor="#f5f5f5">
<tbody>

        <tr align="center" >
          <td colspan="7" align="right" bgcolor="#e9f4fa"><table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#e9f4fa">
            <tbody>
              <tr>
                <td height="50" align="left">
                   <span class="STYLE109 mar-l15">公章类型：
      <select id="seal_type" name="sealSignature.seal_type" selval="${sealSignature.seal_type?default('')}">
        <option value="">全部</option>
		<#if paramMap.param1009?exists>
		<#list paramMap.param1009 as item>
			<OPTION value="${item.paramCode}">${item.paramName}</OPTION>
		</#list>
		</#if>
      </select>
&nbsp;&nbsp;所属部门：
<input name="sealSignature.belong_section_name" value="${sealSignature.belong_section_name?default('')}" style="height:18px;" type="text" size="12" />
            </label>
      </span><span class="STYLE109" style=" position:absolute;margin-top:-2px;" > &nbsp;
      <input name="Submit" style=" vertical-align:middle" type=image value="开始查询" src="../images/sosuo.gif"  width=26 height=25>
      </span>
                </td>
                <td width="30%"align="right" id="formtop">
                   <input name="" type="button"  value="添加公章" onclick="location.href='officialDoc_goSealEdit.action'"/>
                </td>
              </tr>
            </tbody>
          </table></td>
        </tr>
        <tr bgcolor="#dddedb">
          <td width="6%" height="30" align="center" bgcolor="#d6effe">序号</td>
          <td width="12%" height="30" align="center" bgcolor="#d6effe">公章预览</td>
          <td width="18%" align="center" bgcolor="#d6effe">公章名称</td>
          <td width="24%" align="center" bgcolor="#d6effe">所属部门</td>
          <td width="18%" align="center" bgcolor="#d6effe">类型</td>
          <td width="16%" align="center" bgcolor="#d6effe">操作</td>
        </tr>
<#list sealSignatureList?if_exists as seallist>
        <tr bgcolor="#dddedb">
          <td height="20" align="center" bgcolor="#FFFFFF">${seallist.id?default('')}</td>
          <td bgcolor="#FFFFFF">
          <#if seallist.file_path?exists>
          	<div class="MbBox"><img src="${seallist.file_path}" style="max-width:106px;max-height:74px;" /></div>
		  </#if>
          </td>
          <td align="center" bgcolor="#FFFFFF">${seallist.title?default('')}</td>
          <td align="center" bgcolor="#FFFFFF">${seallist.belong_section_name?default('')}</td>
          <td align="center" bgcolor="#FFFFFF">${seallist.seal_type_name?default('')}</td>
          <td align="center" bgcolor="#FFFFFF">
          <#assign a=0>
	    	<#assign b=0>
	    	<#list allPower?if_exists as power>
	    		<#if power?number == 209>
	    			<#assign a=a+1>
	    		</#if>
	    		<#if power?number == 208>
	    			<#assign b=b+1>
	    		</#if>
	    	</#list>
	    	<#if a==0>
	    		<font color="#777777">修改</font>&nbsp;
	    	<#else>
	    		<a href="officialDoc_goSealEdit.action?sealSignature.id=${seallist.id}">修改</a>&nbsp;
	    	</#if>
	    	<#if b==0>
	    		<font color="#777777">删除</font>
	    	<#else>
	    		<a href="javascript:doDel('${seallist.id}');">删除</a>
	    	</#if>
	    	
	    	
          </td>
        </tr>
</#list>
        <tr>
          <td colspan="7" bgcolor="#FFFFFF">
                                      <div id="BlockFoot">
              <div class="left"><span class="STYLE10">第<span class="h2-red">${page}</span>页/共<span class="h2-red">${intPageCount}</span>页,总计<span class="h2-red">${intRowCount}</span>条记录</span></div>
												
<div class="right"><span class="STYLE10">
<#if page gt 1 >[<a href="javascript:goPage(1);">首页</a>]<#else> [首页]</#if>
<#if page gt 1 >[<a href="javascript:goPage(${page-1});">上一页</a>]<#else>[上一页]</#if>
<#if page lt intPageCount >[<a href="javascript:goPage(${page+1});">下一页</a>]<#else>[下一页]</#if>
<#if page lt intPageCount >[<a href="javascript:goPage(${intPageCount});">尾页</a>]<#else>[尾页]</#if>
转向<select id="page" name="page" onChange="document.officialDoc_goSeal.submit();">
      <#assign p=intPageCount>
      <#if p==0>
      <option value='0' selected>1</option>
      <#else>
      <#list 1..p as j>
      <option value='${j}'
          <#if page==j>selected</#if>>${j}</option>
      </#list>
      </#if></select> 页 </span></div>
            </div>
          </td>
        </tr>
    </tbody>
    </table>
    </div>
</form>
    </div>
    </div>
    </div>
    </div>
<script type="text/javascript">
<!--
$(document).ready(function(){
	//初始化下拉框的值
	$("#seal_type").val($("#seal_type").attr("selval"));
});
function goPage(pageNum){
	$("#page").val(pageNum);
	document.officialDoc_goSeal.submit();
}
function doDel(lid){
	if(window.confirm("您确定要删除该公章吗？")){
		document.officialDoc_goSeal.action = "officialDoc_delSeal.action?sealSignature.id="+lid;
		document.officialDoc_goSeal.submit();
	}
}
//-->
</script>
</body>
</html>
